<!DOCTYPE html>
<html>
<head>
	<title>奖品领取</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no, maximum-scale=1.0"/>
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <link href="{G_TEMPLATES_CSS}/wx/user.css" rel="stylesheet">
    <link href="{G_TEMPLATES_CSS}/wx/comm.css" rel="stylesheet">
    <script src="{G_TEMPLATES_JS}/wx/jquery-2.1.4.min.js"></script>
</head>
<body>
{wc:templates "mobile/index","header"} 
    <div class="prize-main">
    	<ul>
        	<li><span class="account-main-fl select">全部</span></li>
            <li><span class="account-main-fl">待发货</span></li>
            <li><span class="account-main-fl">待收货</span></li>
            <li><span class="account-main-fl">已领取</span></li>
        </ul>
        <div class="clear"></div>
    </div>
    
    <!--待发货-->
    <div class="order-page">
    	<ul>
        	  {wc:loop $orderlist $orderlist}
            <li>
                <a href="{WEB_PATH}/mobile/mobile/item/{wc:$orderlist['id']}">
                <img src="{G_UPLOAD_PATH}/{wc:$orderlist['thumb']}" class="order-goods-img">
                </a>
                <a href="{WEB_PATH}/mobile/mobile/item/{wc:$orderlist['id']}">
                <span class="order-goods-name">{wc:$orderlist['title']}</span></a><br />
                <span class="order-state">尚未领奖</span><br />
                <span class="zj-num">中奖号码：{wc:$orderlist['huode']}</span><br />
                <span class="jx-time">揭晓时间：<?
                echo date("Y-m-d H:i:s",$orderlist['q_end_time'])
                ?></span>
        {wc:loop:end}
        </ul>
    </div>
    
    <!--待收货-->
    <div class="order-page">
    	<ul>
        {wc:loop $orderlist1 $orderlist}
        	<li>
            	<a href="{WEB_PATH}/mobile/mobile/item/{wc:$orderlist['id']}">
            	<img src="{G_UPLOAD_PATH}/{wc:$orderlist['thumb']}" class="order-goods-img">
                </a>
                <a href="{WEB_PATH}/mobile/mobile/item/{wc:$orderlist['id']}">
                <span class="order-goods-name">{wc:$orderlist['title']}</span></a><br />
                <span class="order-state">快递到付</span><br />
                <span class="zj-num">收货人：{wc:$address['shouhuoren']}</span><br />
                <span class="jx-time">收件地址:{wc:$address['jiedao']}</span>
            </li>
            {wc:loop:end}
        </ul>
    </div>
    
    <!--已领取-->
    <div class="order-page">
    	<ul>
        	{wc:loop $orderlist2 $orderlist}
            
            <li>
            <a href="{WEB_PATH}/mobile/mobile/item/{wc:$orderlist['id']}">
            	<img src="{G_UPLOAD_PATH}/{wc:$orderlist['thumb']}" class="order-goods-img"></a>
                <a href="{WEB_PATH}/mobile/mobile/item/{wc:$orderlist['id']}">
                <span class="order-goods-name">{wc:$orderlist['title']}</span></a><br />
                <span class="order-state-1">快递到付</span><br />
                <span class="zj-num">收货人：{wc:$address['shouhuoren']}</span><br />
                <span class="jx-time">收件地址:{wc:$address['jiedao']}</span>
               <!--  <img src="images/shanchu.png" class="order-del-img"> -->
            </li>
            {wc:loop:end}
        </ul>
    </div>
    
    
<script>
	$(document).ready(function(e) {
        $(".prize-main ul li").click(function(){
			$(".account-main-fl").removeClass("select");
			var sw=$(".prize-main ul li").index(this);
			$(".prize-main ul li").eq(sw).children("span").addClass("select");
			if(sw==0){
				$(".order-page").show();
			}else{
				sw=sw-1;
				$(".order-page").eq(sw).show().siblings(".order-page").hide();
			}
		})
		$(".order-del-img").click(function(){
			if(confirm("确认删除吗")){
				alert("yes");
			}else{
				alert("no")
				return;
			}
		})
    });
</script>
</body>
</html>
